<script type="text/javascript">
   <?php $this->_block('handscript'); ?><?php $this->_endblock(); ?> 
	
	jQuery(document).ready(function() {

		//alert('121212');
		jQuery('#Form_HostgroupAdd').ajaxForm({
				target: '#mainPanel_pad',
				beforeSubmit: function(){
					//alert(jQuery('#description').val());
				},
				success: function(a) {
					//jQuery('#mainPanel_pad').html('修改成功！');
					
					if(a=='　'){
						alert('已存在此主机组！');
						freshaddgroup();
					
					}else{
						if(a==''){
						
							alert('添加成功！');

							if(!confirm('继续添加')){
								freshgroup();
							}else{
								freshaddgroup();
								jQuery('.goblank').val('');
							}
						}
					}
				}
		});

	
	  <?php $this->_block('bodyready'); ?><?php $this->_endblock(); ?>
      
    });
</script>

<?php $this->_block('contents'); ?><?php $this->_endblock(); ?>